<?php
/**
 * Blog/Show_Series.php
 */

$page->title = "Series";
$page->author = "North Rock Hill Church";
$page->description = "Watch and listen to past NRHC sermon series.";
$page->keywords = "watch, listen, media, sermon, series, download, podcast, video, mp3, audio, sunday";

?>

<section id="blog">

  <h1>Sermon Series</h1>

<?php

if( !$page->error ) :
  $blogs = $page->blogs;

?>

<hr>
<?php for( $c=0; $c < count( $blogs ); $c++ ): ?>
  <?php snippet( 'series-list.php', array( 'post'=>$blogs[$c] )) ?>
<?php endfor ?>

<?php else: ?>
  <p>No posts were found</p>
<?php endif ?>

</section><!-- /#blog -->

<footer>
  <?= module( 'liriope', 'pagination', array( 'page'=>$page )) ?>
</footer>

